<script lang="ts" setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter();

import homeModelTwoUtil from "./homeModelTwoUtil.vue";


const props = defineProps({
  dayProduct: {
    type: Array
  }
});
</script>
<template>
  <section class="homeProductModelTwoUtil" v-if="props.dayProduct">
    <div class="title"></div>
    <div class="content borderB" >
      <homeModelTwoUtil :product="props.dayProduct[0]" :colorType="0" :eleType="1"></homeModelTwoUtil>
      <homeModelTwoUtil :product="props.dayProduct[1]" :colorType="1" :eleType="1"></homeModelTwoUtil>
      <homeModelTwoUtil :product="props.dayProduct[2]" :colorType="2" :eleType="1"></homeModelTwoUtil>
      <homeModelTwoUtil :product="props.dayProduct[3]" :colorType="3" :eleType="1" :borderR="false"></homeModelTwoUtil>
    </div>
    <div class="content">
      <homeModelTwoUtil :product="props.dayProduct[4]" :colorType="4" :eleType="1"></homeModelTwoUtil>
      <homeModelTwoUtil :product="props.dayProduct[5]" :colorType="5" :eleType="1"></homeModelTwoUtil>
      <homeModelTwoUtil :product="props.dayProduct[6]" :colorType="6" :eleType="1"></homeModelTwoUtil>
      <homeModelTwoUtil :product="props.dayProduct[7]" :colorType="7" :eleType="1" :borderR="false"></homeModelTwoUtil>
    </div>
  </section>
</template>

<style lang="less" scoped>
.homeProductModelTwoUtil {
  width: 3.75rem;
  background: white;
  .title {
    height: .35rem;
    background: url("../../../assets/images/model-icon-2.png") no-repeat center;
    background-size: contain;
    background-color: #f6f6f6;
  }
  .content {
    display: flex;
    justify-content: center;
    position: relative;
    &.borderB:after {
      width: 100%;
      content: "";
      height: .0rem;
      border-top: .01rem solid transparent;
      position: absolute;
      background: #f5f5f5;
      bottom: 0;
      right: 0;
      // -webkit-transform: scaleX(.5);
      // transform: scaleX(.5);
      z-index: 10;
    }
  }
}
</style>

